package com.das.mechanic_base.bean.process;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

public class ProcessName implements Parcelable {

     public List<String> names;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeStringList(this.names);
    }

    public void readFromParcel(Parcel source) {
        this.names = source.createStringArrayList();
    }

    public ProcessName() {
    }

    protected ProcessName(Parcel in) {
        this.names = in.createStringArrayList();
    }

    public static final Creator<ProcessName> CREATOR = new Creator<ProcessName>() {
        @Override
        public ProcessName createFromParcel(Parcel source) {
            return new ProcessName(source);
        }

        @Override
        public ProcessName[] newArray(int size) {
            return new ProcessName[size];
        }
    };
}
